-- slime
-- created by panyl
-- 冈布奥阶位

return {
    getProgress = function()
        local config = GiftM.query("slime", grade);

        -- 所有宠物
        local ret = 0;
        local pets = ME.user.pets;
        for _, pet in pairs(pets) do
            ret = ret + pet:getRank();
        end

        return ret;
    end,

    checkProgress = function(grade)
        local config = GiftM.query("slime", grade);

        -- 所有宠物
        local ret = 0;
        local pets = ME.user.pets;
        for _, pet in pairs(pets) do
            ret = ret + pet:getRank();
        end

        return ret >= config["require"];
    end,
};
